package com.yljk.yljkproject.aliyunface;

import android.content.Context;

import com.aliyun.aliyunface.api.ZIMFacade;

/**
 * Create By shicheng
 *
 * 阿里云人脸识别
 *
 */
public class MyZIMFacadeBuilder {

    private static MyZIMFacade s_instance = null;

    public MyZIMFacadeBuilder() {
    }

    public static synchronized MyZIMFacade create(Context context) {
        if (context == null) {
            throw new RuntimeException("context Can't be null");
        } else {
            if (null == s_instance) {
                s_instance = new MyZIMFacade(context);
            }

            return s_instance;
        }
    }

}
